{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,500,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); c1->SetFrameLineWidth(2); c1->SetFrameLineWidth(2); Double_t xAxis[17] = {0., 0.95, 1.05, 2., 2.95, 3.05, 4., 4.95, 5.05, 6., 7., 8., 9., 9.95, 10.05, 11., 12.}; TH1 *EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",16, xAxis); EvsC1->SetBinContent(2,3.678); EvsC1->SetBinContent(5,3.700); EvsC1->SetBinContent(8,3.596); EvsC1->SetBinContent(14,3.763); EvsC1->SetBinError(2,0.067); EvsC1->SetBinError(5,0.050); EvsC1->SetBinError(8,0.066); EvsC1->SetBinError(14,0.088); g1 = new TGraphErrors(4); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(1); g1->SetMarkerColor(4); g1->SetMarkerStyle(25); g1->SetMarkerSize(1.3); g1->SetPoint(0,1.0, 3.678); g1->SetPoint(1,3.0, 3.700); g1->SetPoint(2,5.0, 3.596); g1->SetPoint(3,10.0, 3.763); g1->SetPointError(0,0,0.067); g1->SetPointError(1,0,0.050); g1->SetPointError(2,0,0.066); g1->SetPointError(3,0,0.088); EvsC1->SetLineColor(4); EvsC1->SetLineWidth(2); EvsC1->SetMarkerColor(4); EvsC1->SetMarkerStyle(25); EvsC1->SetMarkerSize(1.3); g2 = new TGraphErrors(4); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2->SetPoint(0,1.0, 2.974); g2->SetPoint(1,3.0, 3.074); g2->SetPoint(2,5.0, 3.228); g2->SetPoint(3,10.0, 3.788); g2->SetPointError(0,0,0.054); g2->SetPointError(1,0,0.042); g2->SetPointError(2,0,0.059); g2->SetPointError(3,0,0.069); g3 = new TGraphErrors(4); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(1); g3->SetMarkerColor(6); g3->SetMarkerStyle(24); g3->SetMarkerSize(1.3); g3->SetPoint(0,1.0, 3.162); g3->SetPoint(1,3.0, 3.209); g3->SetPoint(2,5.0, 3.542); g3->SetPoint(3,10.0, 4.551); g3->SetPointError(0,0,0.069); g3->SetPointError(1,0,0.042); g3->SetPointError(2,0,0.083); g3->SetPointError(3,0,0.11); g4 = new TGraphErrors(4); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(1); g4->SetMarkerColor(1); g4->SetMarkerStyle(20); g4->SetMarkerSize(1.3); g4->SetPoint(0,1.0, 3.263); g4->SetPoint(1,3.0, 3.299); g4->SetPoint(2,5.0, 3.717); g4->SetPoint(3,10.0, 4.87); g4->SetPointError(0,0,0.066); g4->SetPointError(1,0,0.0513); g4->SetPointError(2,0,0.085); g4->SetPointError(3,0,0.14); EvsC1->SetMinimum(2.8); EvsC1->SetMaximum(5.0); EvsC1->SetStats(0); EvsC1->GetXaxis()->SetTitle("HCAL Cell Size/cm"); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(0.9); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/E_{jet} [%]"); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(1.1); EvsC1->GetXaxis()->SetRange(0,15); EvsC1->Draw("p"); g1->Draw("ple same"); g2->Draw("ple same"); g3->Draw("ple same"); g4->Draw("ple same"); TLatex * tex = new TLatex(0.4,4.75,"b)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.3,0.68,0.45,0.88,NULL,"brNDC"); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("hcalseg_sige.gif"); c1->SaveAs("hcalseg_sige.eps"); }